home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / QuickdrawText.a < prev    next >
Text File  |  1996-05-01  |  4KB  |  185 lines

  1. ;
  2. ;    File:        QuickdrawText.a
  3. ;
  4. ;    Contains:    Quickdraw Text Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__QUICKDRAWTEXT__') = 'UNDEFINED' THEN
  19. __QUICKDRAWTEXT__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  25.     include 'MixedMode.a'
  26.     ENDIF
  27.     IF &TYPE('__SCRIPTLAYOUT__') = 'UNDEFINED' THEN
  28.     include 'ScriptLayout.a'
  29.     ENDIF
  30.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  31. FontInfo                RECORD 0
  32. ascent                     ds.w    1                ; offset: $0 (0)
  33. descent                     ds.w    1                ; offset: $2 (2)
  34. widMax                     ds.w    1                ; offset: $4 (4)
  35. leading                     ds.w    1                ; offset: $6 (6)
  36. sizeof                     EQU *                    ; size:   $8 (8)
  37.                         ENDR
  38. ;
  39. ; pascal void TextFont(short font)
  40. ;
  41.     IF ¨ GENERATINGCFM THEN
  42.         _TextFont:    OPWORD    $A887
  43.     ELSE
  44.         IMPORT_CFM_FUNCTION TextFont
  45.     ENDIF
  46.  
  47. ;
  48. ; pascal void TextFace(StyleParameter face)
  49. ;
  50.     IF ¨ GENERATINGCFM THEN
  51.         _TextFace:    OPWORD    $A888
  52.     ELSE
  53.         IMPORT_CFM_FUNCTION TextFace
  54.     ENDIF
  55.  
  56. ;
  57. ; pascal void TextMode(short mode)
  58. ;
  59.     IF ¨ GENERATINGCFM THEN
  60.         _TextMode:    OPWORD    $A889
  61.     ELSE
  62.         IMPORT_CFM_FUNCTION TextMode
  63.     ENDIF
  64.  
  65. ;
  66. ; pascal void TextSize(short size)
  67. ;
  68.     IF ¨ GENERATINGCFM THEN
  69.         _TextSize:    OPWORD    $A88A
  70.     ELSE
  71.         IMPORT_CFM_FUNCTION TextSize
  72.     ENDIF
  73.  
  74. ;
  75. ; pascal void SpaceExtra(Fixed extra)
  76. ;
  77.     IF ¨ GENERATINGCFM THEN
  78.         _SpaceExtra:    OPWORD    $A88E
  79.     ELSE
  80.         IMPORT_CFM_FUNCTION SpaceExtra
  81.     ENDIF
  82.  
  83. ;
  84. ; pascal void DrawChar(CharParameter ch)
  85. ;
  86.     IF ¨ GENERATINGCFM THEN
  87.         _DrawChar:    OPWORD    $A883
  88.     ELSE
  89.         IMPORT_CFM_FUNCTION DrawChar
  90.     ENDIF
  91.  
  92. ;
  93. ; pascal void DrawString(ConstStr255Param s)
  94. ;
  95.     IF ¨ GENERATINGCFM THEN
  96.         _DrawString:    OPWORD    $A884
  97.     ELSE
  98.         IMPORT_CFM_FUNCTION DrawString
  99.     ENDIF
  100.  
  101. ;
  102. ; pascal void DrawText(const void *textBuf, short firstByte, short byteCount)
  103. ;
  104.     IF ¨ GENERATINGCFM THEN
  105.         _DrawText:    OPWORD    $A885
  106.     ELSE
  107.         IMPORT_CFM_FUNCTION DrawText
  108.     ENDIF
  109.  
  110. ;
  111. ; pascal short CharWidth(CharParameter ch)
  112. ;
  113.     IF ¨ GENERATINGCFM THEN
  114.         _CharWidth:    OPWORD    $A88D
  115.     ELSE
  116.         IMPORT_CFM_FUNCTION CharWidth
  117.     ENDIF
  118.  
  119. ;
  120. ; pascal short StringWidth(ConstStr255Param s)
  121. ;
  122.     IF ¨ GENERATINGCFM THEN
  123.         _StringWidth:    OPWORD    $A88C
  124.     ELSE
  125.         IMPORT_CFM_FUNCTION StringWidth
  126.     ENDIF
  127.  
  128. ;
  129. ; pascal short TextWidth(const void *textBuf, short firstByte, short byteCount)
  130. ;
  131.     IF ¨ GENERATINGCFM THEN
  132.         _TextWidth:    OPWORD    $A886
  133.     ELSE
  134.         IMPORT_CFM_FUNCTION TextWidth
  135.     ENDIF
  136.  
  137. ;
  138. ; pascal void MeasureText(short count, const void *textAddr, void *charLocs)
  139. ;
  140.     IF ¨ GENERATINGCFM THEN
  141.         _MeasureText:    OPWORD    $A837
  142.     ELSE
  143.         IMPORT_CFM_FUNCTION MeasureText
  144.     ENDIF
  145.  
  146. ;
  147. ; pascal void GetFontInfo(FontInfo *info)
  148. ;
  149.     IF ¨ GENERATINGCFM THEN
  150.         _GetFontInfo:    OPWORD    $A88B
  151.     ELSE
  152.         IMPORT_CFM_FUNCTION GetFontInfo
  153.     ENDIF
  154.  
  155. ;
  156. ; pascal void CharExtra(Fixed extra)
  157. ;
  158.     IF ¨ GENERATINGCFM THEN
  159.         _CharExtra:    OPWORD    $AA23
  160.     ELSE
  161.         IMPORT_CFM_FUNCTION CharExtra
  162.     ENDIF
  163.  
  164. ;
  165. ; pascal void StdText(short count, const void *textAddr, Point numer, Point denom)
  166. ;
  167.     IF ¨ GENERATINGCFM THEN
  168.         _StdText:    OPWORD    $A882
  169.     ELSE
  170.         IMPORT_CFM_FUNCTION StdText
  171.     ENDIF
  172.  
  173. ;
  174. ; pascal short StdTxMeas(short byteCount, const void *textAddr, Point *numer, Point *denom, FontInfo *info)
  175. ;
  176.     IF ¨ GENERATINGCFM THEN
  177.         _StdTxMeas:    OPWORD    $A8ED
  178.     ELSE
  179.         IMPORT_CFM_FUNCTION StdTxMeas
  180.     ENDIF
  181.  
  182.     ENDIF
  183.     ENDIF ; __QUICKDRAWTEXT__ 
  184.  
  185.